package net.jiastudy.biz.project.entity;

import java.util.Date;

import javax.validation.constraints.NotEmpty;

import com.alibaba.fastjson.annotation.JSONField;

import io.swagger.annotations.ApiModelProperty;
import net.jiastudy.core.base.BaseEntity;

public class PersonalProjectCategory extends BaseEntity<PersonalProjectCategory> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@NotEmpty(message = "名称不能为空")
	@ApiModelProperty(value = "名称")
	private String name;
	@NotEmpty(message = "编码不能为空")
	@ApiModelProperty(value = "编码")
	private String code;
	@ApiModelProperty(value = "开始时间")
	@JSONField(format = "yyyy-MM-dd")
	private Date startDate;
	@ApiModelProperty(value = "结束时间")
	@JSONField(format = "yyyy-MM-dd")
	private Date endDate;
	@ApiModelProperty(value = "创建者")
	private Long createdUserId;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Long getCreatedUserId() {
		return createdUserId;
	}
	public void setCreatedUserId(Long createdUserId) {
		this.createdUserId = createdUserId;
	}
}
